//
//  PublicTimerDisplayView.h
//  yqApp
//
//  Created by dqb on 15/10/15.
//  Copyright © 2015年 yq. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "APWorksModel.h"
@class APPublicTimerDisplayView;
@protocol PublicTimerDisplayViewDelegate <NSObject>
@optional
- (void)publicTimerDisplayView:(APPublicTimerDisplayView *)displayView  displayViewSelectedAtIndexPath:(NSIndexPath *)indexPath info:(NSDictionary *)info;
@optional;
- (void)publicTimerDisplayView:(APPublicTimerDisplayView *)displayView  displayViewEndDisplayAtIndexPath:(NSIndexPath *)indexPath;


@end

typedef NS_ENUM(NSUInteger, DisplayViewPageControlStyle) {
    DisplayViewPageControlStyleDefault = 0,
    DisplayViewPageControlStyleNumber,
    DisplayViewPageControlStyleDiscover
};

@interface APPublicTimerDisplayView : UIView
@property (nonatomic, assign) NSInteger dmTag;
@property (nonatomic, assign) BOOL isPageVisible;
@property (nonatomic, assign) BOOL isAutoScroll;
@property (nonatomic, assign) BOOL showPageBackground;
@property (nonatomic, assign) DisplayViewPageControlStyle pageControlStyle;
@property (nonatomic, assign) id<PublicTimerDisplayViewDelegate>delegate;
@property (nonatomic, strong) NSArray *urlArray;
@property (nonatomic, assign) bool isLocalFile;
- (void)dm_setCornerRadius:(CGFloat)cornerRadius;

@end
